package com.example.egmybatis03.mapper;

import com.example.egmybatis03.poji.entity.Product;
import com.example.egmybatis03.vo.ProductVo1;
import com.example.egmybatis03.vo.ProductVo2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    int insertProduct(Product product);

    ProductVo1 selectOneProduct(Integer pid);

    List<ProductVo2> selectAllProduct();

    int deleteById(Integer pid);

    int updateById(Product product);
}
